import React from 'react'
import './globals.css'
import type { Metadata } from 'next'
import ThemeProvider from '@/components/theme/theme-provider'
import { Toaster } from "@/components/ui/sonner"

export const metadata: Metadata = {
  title: 'Next Blog',
  description: 'Next 15 blog using zustand, drizzle and postgres',
}

export default function Layout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en" suppressHydrationWarning>
      <body>
        <ThemeProvider
          attribute="class"
          defaultTheme="light"
          enableSystem
        >
          {children}
          <Toaster />
        </ThemeProvider>
      </body>
    </html>
  )
}
